﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<ul class="nav navbar-nav nav-menu umu-navbar-nav no-last-right-border pull-left">
 <c:forEach var="menu" items="${secure.menus}">
    <c:if test="${currentPrincipal.hasResource('menus', menu.id)}">
      <c:if test="${menuContext.shouldHighlight(menu.id)}"><c:set value="${menu.id}" var="activeMenu" scope="request" /></c:if>
      <li ${menuContext.shouldHighlight(menu.id) ? 'class="active"' : 'class=""'}><a href="${ctx.host}/${menu.url}">${menu.name}</a></li>
    </c:if>
  </c:forEach>  
  <li><a href="https://passport.umu.cn/oauth/cifi/login?redirect_url=https%3a%2f%2fm.umu.cn%2fssu_16nub03f3" target="_BLANK">问题反馈</a></li>
</ul>



